#ifndef __USART_H
#define __USART_H
#include "stdio.h"	
#include "sys.h" 

#define USART_REC_LEN  			200  	//定义最大接收字节数 200
#define EN_USART1_RX 			1		//使能（1）/禁止（0）串口1接收
#define EN_USART3_RX 			1
#define DEBUG

#ifdef DEBUG
 #define DebugOut(format,args...) printf(format,##args)
#else
 #define DebugOut(format,args...)
#endif



#define   RECEIVED_BUFFER_SIZE  512
// extern  u8	_ReceiveBuffer[RECEIVED_BUFFER_SIZE];
// extern  u8   _DataMode;
// extern  u16 _ReceiveBufferPosition;    
  void USART1_IRQHandler(void);    
  void USART3_IRQHandler(void);    
//如果想串口中断接收，请不要注释以下宏定义
void uart_init(u32 bound);
#endif


